package org.summer.lawyer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.summer.common.mybatis.core.page.PageQuery;
import org.summer.common.mybatis.core.page.TableDataInfo;
import org.summer.lawyer.domain.Article;
import org.summer.lawyer.domain.bo.article.ArticleBrowseBo;
import org.summer.lawyer.domain.vo.article.ArticleCreateVo;
import org.summer.lawyer.domain.vo.article.ArticleUpdateVo;
import org.summer.lawyer.domain.vo.article.ArticleVo;

import java.util.Collection;

/**
 * 
 * 
 * 
 */
public interface IArticleService extends IService<Article>{


    TableDataInfo<ArticleVo> selectListPage(ArticleVo vo, PageQuery pageQuery);

    ArticleVo selectArticleVoById(Long id);

    void  saveArticle(ArticleCreateVo vo);

    void  updateArticle(ArticleUpdateVo vo);

    void deleteArticleByIds(Collection<Long> ids);

    void changeArticleStatus(ArticleVo vo);

    void saveArticleBrowse(ArticleBrowseBo bo);

    ArticleVo selectNextArticleByArticleId(Long articleId);

    void updateArticleTotalUpvote(ArticleVo vo);
}
